$OpenBSD: patch-kicker_applets_naughty_NaughtyProcessMonitor_cpp,v 1.3 2014/09/16 20:13:49 espie Exp $
--- kicker/applets/naughty/NaughtyProcessMonitor.cpp.orig	Mon Oct 10 09:03:59 2005
+++ kicker/applets/naughty/NaughtyProcessMonitor.cpp	Tue Sep 16 14:10:59 2014
@@ -25,7 +25,7 @@
 #include <sys/proc.h>
 #include <sys/sysctl.h>
 #include <sys/ucred.h>
-#include <sys/dkstat.h>
+#include <sys/sched.h>
 #include <stdlib.h>
 #endif
 
@@ -409,12 +409,12 @@ NaughtyProcessMonitor::pidList() const
   d->cacheLoadMap_.clear () ;
   d->uidMap_.clear () ;
   for (i = 0; i < nentries; i++) {
-      l << (unsigned long) kp[i].kp_proc.p_pid ;
-      d->cacheLoadMap_.insert (kp[i].kp_proc.p_pid,
-			       (kp[i].kp_proc.p_uticks + 
-				kp[i].kp_proc.p_sticks)) ;
-      d->uidMap_.insert (kp[i].kp_proc.p_pid,
-			 kp[i].kp_eproc.e_ucred.cr_uid) ;
+      l << (unsigned long) kp[i].p_pid ;
+      d->cacheLoadMap_.insert (kp[i].p_pid,
+			       (kp[i].p_uticks + 
+				kp[i].p_sticks)) ;
+      d->uidMap_.insert (kp[i].p_pid,
+			 kp[i].p_uid) ;
   }
 
   free (kp) ;
